package com.wind.sample.dubbo.provider.service.impl;

import com.wind.sample.dubbo.provider.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import com.wind.sample.dubbo.proto.user.UserRequest;
import com.wind.sample.dubbo.proto.user.UserResponse;

@DubboService
public class UserServiceImpl implements UserService {
    @Override
    public UserResponse getUser(UserRequest request) {
        return UserResponse.newBuilder()
                .setName("User-" + request.getId())
                .setAge(20)
                .build();
    }
}
